﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;

namespace FDSimpleModelGenerator.ViewComponents
{
    public class UploadViewComponent : ViewComponent
    {
        public async Task<IViewComponentResult> InvokeAsync()
        {
            var data = await Task.Run(() => new User
            {
                Name = "Lee",
                Count = 100
            });
            return View(data);
        }
    }

    public class User
    {
        public string Name { get; set; }

        public int Count { get; set; }
    }
}
